package com.dehong.service.impl;

import com.dehong.mapper.ContractCMapper;
import com.dehong.model.ContractC;
import com.dehong.service.ContractCService;
import com.dehong.vo.ContractCVo;
import com.dehong.vo.ContractPCVo;
import com.dehong.vo.ShipVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class ContractCServiceImpl implements ContractCService {
    @Resource
   private ContractCMapper contractCMapper;
    @Override
    public int deleteByPrimaryKey(String contractId) {
        return contractCMapper.deleteByPrimaryKey(contractId);
    }

    @Override
    public int insert(ContractC record) {
        return contractCMapper.insert(record);
    }

    @Override
    public int insertSelective(ContractC record) {
        return contractCMapper.insertSelective(record);
    }

    @Override
    public ContractC selectByPrimaryKey(String contractId) {
        return contractCMapper.selectByPrimaryKey(contractId);
    }

    @Override
    public int updateByPrimaryKeySelective(ContractC record) {
        return contractCMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ContractC record) {
        return contractCMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ContractCVo> selectcontractc() {
        return contractCMapper.selectcontractc();
    }

    @Override
    public List<ShipVo> selectByShipTime(ShipVo shipVo) {
        return contractCMapper.selectByShipTime(shipVo);
    }
}
